import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class properties_01 {
    public static void main(String[] args) throws IOException {
        Properties properties=new Properties();
        properties.setProperty("user","ppp");
        properties.setProperty("pwd","145");
        properties.setProperty("ip","129.0.0.2");
        properties.store(new FileOutputStream("src\\pro.properties"),null);
        System.out.println("修改成功");
    }
}
